﻿@{
    Layout = "~/Views/Shared/OA/_Layout.cshtml";
}
@if (IsSectionDefined("Toolbar"))
{
    <div id="toolbar" class="toolbar">
        <div class="wrap">
            <div class="comands">
                @RenderSection("Toolbar", false)
            </div>
            <div class="search">
                @RenderSection("Query", false)
            </div>
        </div>
    </div>
}
<ul id="menu" class="menu">
    <li>
        <ul>
            @RenderSection("Menu", false)
        </ul>
    </li>
</ul>
<div id="lay-tree">
    <div id="left-pane">
        @RenderSection("Tree")
    </div>
    <div id="center-pane">
        @RenderSection("Main")
    </div>
</div>
<div id="operate" class="operate">
    <div>
        <button class="k-button" onclick="save()">
            <span class="i i-enable"></span>确定
        </button>
        <button class="k-button" onclick="cancel()">
            <span class="i i-disable"></span>取消
        </button>
    </div>
</div>
@RenderBody()
<style>
    .operate { border-top: solid 1px #e6e6e6; }
    .operate div{ padding: 10px; text-align: right;  }
</style>
<script src="~/App_Content/Script/OA/_DialogSplitter.js"></script>
<script>
    function save()
    {
        top.callback(getData());
        if (typeof (isClose) != 'undefined' && isClose == false)
        {
            return;
        }
        top.winClose();
    }

    function cancel()
    {
        top.winClose();
    }
</script>
